<template>
  <view class="fixed top-0 left-0 w-[vw] h-[vh]">
    <web-view class="w-full h-full" :src="url" />
  </view>
</template>

<script setup lang="ts">
import Taro from '@tarojs/taro'
import { ref, onMounted } from 'vue'
import { useUserStore } from "@/store/user";
import { storeToRefs } from "pinia"
import {post,getFullPath} from "@/utils/request"

// 用户信息
const userStore = useUserStore();
const {userInfo} = storeToRefs(userStore);
const url = ref('')
// const account = ref('')
// const token = ref('')

onMounted(() => {
  const params = Taro.getCurrentInstance().router?.params
  const other = params?.other
//   const token = params?.token
  url.value = `http://localhost:5173/?account=${userInfo.value.imaccid}&token=${userInfo.value.imtoken}`
})
</script>

<style scoped lang="scss"></style>